enum Color{
    RED,GREEN,BLUE;
    private Color(){
        System.out.println("Constructor called for :"+this.toString());
    }
    public void colorInfo(){
        System.out.println("inside colorInfo");
    }
}
public class MyClass {
    public static void main(String[] args){
        Color c1 = Color.RED;
        System.out.println(c1);
        c1.colorInfo();
    }

}
